﻿using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Web.Services;
using SampleWebApplication.code;

namespace SampleWebApplication
{
    [ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class AjaxService: WebService
    {
        public INotes Notes { get; set; }

        public AjaxService(INotes notes)
        {
            Notes = notes;
        }

        [OperationContract]
        [WebGet]
        public void DoWork()
        {
            // Add your operation implementation here
            return;
        }
    }
}
